cmake_minimum_required(VERSION 3.10)

project(gui)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Qt5 COMPONENTS Core Widgets Test REQUIRED)

add_library( gui
    IndexedShapeShower.cpp
    PaletteShower.cpp
    PaletteScene.cpp
    Util.cpp
)
target_include_directories( gui
    PUBLIC
        .
)
target_link_libraries( gui
    PRIVATE
        common
        shp
        Qt5::Widgets
)